package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Region implements Serializable {
    private String rno;

    private String rname;

    private String rnoimg;

    private String raddress;

    private String rdescribe;

    private Integer rstate;

    private String rnaddress;

    private static final long serialVersionUID = 1L;

    public String getRno() {
        return rno;
    }

    public void setRno(String rno) {
        this.rno = rno;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public String getRnoimg() {
        return rnoimg;
    }

    public void setRnoimg(String rnoimg) {
        this.rnoimg = rnoimg;
    }

    public String getRaddress() {
        return raddress;
    }

    public void setRaddress(String raddress) {
        this.raddress = raddress;
    }

    public String getRdescribe() {
        return rdescribe;
    }

    public void setRdescribe(String rdescribe) {
        this.rdescribe = rdescribe;
    }

    public Integer getRstate() {
        return rstate;
    }

    public void setRstate(Integer rstate) {
        this.rstate = rstate;
    }

    public String getRnaddress() {
        return rnaddress;
    }

    public void setRnaddress(String rnaddress) {
        this.rnaddress = rnaddress;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Region other = (Region) that;
        return (this.getRno() == null ? other.getRno() == null : this.getRno().equals(other.getRno()))
            && (this.getRname() == null ? other.getRname() == null : this.getRname().equals(other.getRname()))
            && (this.getRnoimg() == null ? other.getRnoimg() == null : this.getRnoimg().equals(other.getRnoimg()))
            && (this.getRaddress() == null ? other.getRaddress() == null : this.getRaddress().equals(other.getRaddress()))
            && (this.getRdescribe() == null ? other.getRdescribe() == null : this.getRdescribe().equals(other.getRdescribe()))
            && (this.getRstate() == null ? other.getRstate() == null : this.getRstate().equals(other.getRstate()))
            && (this.getRnaddress() == null ? other.getRnaddress() == null : this.getRnaddress().equals(other.getRnaddress()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRno() == null) ? 0 : getRno().hashCode());
        result = prime * result + ((getRname() == null) ? 0 : getRname().hashCode());
        result = prime * result + ((getRnoimg() == null) ? 0 : getRnoimg().hashCode());
        result = prime * result + ((getRaddress() == null) ? 0 : getRaddress().hashCode());
        result = prime * result + ((getRdescribe() == null) ? 0 : getRdescribe().hashCode());
        result = prime * result + ((getRstate() == null) ? 0 : getRstate().hashCode());
        result = prime * result + ((getRnaddress() == null) ? 0 : getRnaddress().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rno=").append(rno);
        sb.append(", rname=").append(rname);
        sb.append(", rnoimg=").append(rnoimg);
        sb.append(", raddress=").append(raddress);
        sb.append(", rdescribe=").append(rdescribe);
        sb.append(", rstate=").append(rstate);
        sb.append(", rnaddress=").append(rnaddress);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}